<template>
  <span> 计数器{{ store.count }} </span>
  <button @click="increment(2)">累加</button>
  <div>双倍：{{ store.double }}</div>
</template>
<script setup>
// import { inject } from "vue";
import { useCounterStore } from "./stores/counter";
// import { PiniaSymbol } from "./pinia/rootState";

const store = useCounterStore();
// console.log(inject(PiniaSymbol));

const { increment } = store;

// inject();
</script>

<style scoped></style>
